﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace My.Entity
{
    public class Et_User
    {
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { set; get; }

        [Key]
        public Guid Uniqueid { set; get; }

        [MaxLength(50), Required]
        public string UserAccount { set; get; }

        [MaxLength(50), Required]
        public string UserPassword { set; get; }

        [MaxLength(50), Required]
        public string UserName { set; get; }

        [Range(0, 200)]
        public int? Age { set; get; }

        [MaxLength(200)]
        public string Address { set; get; }

        [MaxLength(1000)]
        public string Remark { set; get; }

        public DateTime? InsertTime { set; get; }

        public DateTime? UpdateTime { set; get; }

        public Et_User()
        {
            this.Uniqueid = Guid.NewGuid();
        }
    }
}
